CC=gcc
CFLAGS = -I.

DEPS = types.h
OBJS = main.o player.o location.o commands.o activities.o

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

survive: $(OBJS)
	gcc -o $@ $^ $(CFLAGS) -lreadline

clean:
	rm -f survive *.o
